This is a terrible C solution.

I started out building up to the splitting point, then decided to flip it to improve the orientation of the elbows.

Theory min for C:

You need 1½ input sets to make an output set; 6 output sets means N = 9.
The last input set can be bonded directly on, so L=1.

Hence min C = 20.
